package cn.wolfcode.car.business.domain;

import cn.wolfcode.car.base.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CarPackageAudit {

    public static final Integer STATUS_IN_ROGRESS = 0;//审核中
    public static final Integer STATUS_REJECT = 1;//审核拒绝
    public static final Integer STATUS_PASS = 2;//审核通过
    public static final Integer STATUS_CANCEL = 3;//审核撤销

    private Long id;

    private Long serviceItemId;

    private String serviceItemInfo;

    private BigDecimal serviceItemPrice;

    //为了list页面中展示套餐名称
    private ServiceItem serviceItem;

    private String instanceId;

    private String creator;

    private Long auditorId;

    //为了list页面中展示审批人名称
    private User auditor;

    private Long bpmninfoId;

    private String info;

    private Integer status = STATUS_IN_ROGRESS;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date auditTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}